﻿using UnityEngine;
using System.Collections;

public class ButtonLoginAnimation : MonoBehaviour {

	//public GameObject isLight = null;
	public Texture2D texture = null;
	// Use this for initialization
	/*private void OnMouseDown(){
		if (isLight != null && isLight.light != null) {
			isLight.light.enabled = !isLight.light.enabled;	
			Application.LoadLevel("Level 1");
		}
	}*/

	void Start () {
		//Screen.SetResolution (960, 640, true);
	}
	public void OnGUI(){
		if (GUI.Button (new Rect (Screen.width / 2 - 20, Screen.height/2 + 40, texture.width - 10, texture.height - 10), texture, GUIStyle.none)) {
			Application.LoadLevel("Level 1");		
		}
	}


}
